import request from '@/utils/request'

export function getInfo(query) {
  return request({
    url: '/projectScore/page1',
    method: 'get',
    params: query
  })
}
export function getInfoInquiryScore2(query) {
  return request({
    url: '/projectScore/page2',
    method: 'get',
    params: query
  })
}

export function getProjectScore(projectId) {
  return request({
    url: `/projectScore/win/${projectId}`,
    method: 'get'
  })
}

export function getFileInfo(projectId, supplierId) {
  return request({
    url: `/projectScore/file/${projectId}/${supplierId}`,
    method: 'get'
  })
}

export function add(data) {
  return request({
    url: '/projectScore',
    method: 'post',
    data
  })
}

export function getScoreInfo(projectId, supplierId) {
  return request({
    url: `/projectScore/${projectId}/${supplierId}`,
    method: 'get'
  })
}

export function getSupplierInfo(projectId) {
  return request({
    url: `/projectScore/supplier/${projectId}`,
    method: 'get'
  })
}

export function getProjectBiddingPrice(projectId) {
  return request({
    url: `/projectScore/priceranking/${projectId}`,
    method: 'get'
  })
}
export function choosematerial(projectId, data) {
  return request({
    url: `/project/choose/material/${projectId}`,
    method: 'post',
    data
  })
}
export function ccStaff1(projectId, data) {
  return request({
    contentType: 'application/json;charset=utf-8',
    url: `/project/save/project/msg/${projectId}`,
    method: 'post',
    data
  })
}
export function userrole(projectId) {
  return request({
    url: `/projectScore/user/role/${projectId}`,
    method: 'get'
  })
}
export function pass(data) {
  return request({
    url: `/projectScore/checknew/`,
    method: 'put',
    data: data
  })
}
// export function pass(projectId) {
//   return request({
//     url: `/projectScore/pass/${projectId}`,
//     method: 'put',
//   })
// }
// export function turn(projectId) {
//   return request({
//     url: `/projectScore/turn/down/${projectId}`,
//     method: 'put',
//   })
// }
// export function getshenPi(projectId) {
//   return request({
//     url: `/projectScore/show/check/${projectId}`,
//     method: 'get',
//   })
// }
export function getshenPi(data) {
  return request({
    url: `/sysfunction/check/getFunctionCheckUserList/`,
    method: 'get',
    params: data
  })
}
export function getFileInfo1(projectId, params) {
  return request({
    url: `/projectScore/files/${projectId}`,
    method: 'get',
    params: params
  })
}
export function getResult(projectId) {
  return request({
    url: `/project/givePrice/all1/${projectId}`,
    method: 'get'

  })
}

